package ro.pub.cs.stadium.document;

/**
 * A document item represents any entity that composes a diagram document.
 * It can be a state, a transition, or any other custom defined.
 * @author stefan
 *
 */
public interface IDocumentItem {
	/**
	 * 
	 * @return the name of the entity
	 */
	String getName();
	
	/**
	 * 
	 * @param name the name of the document item to set
	 */
	void setName(String name);
	
	/**
	 * 
	 * @param name the name of the attribute
	 * @return the value of the attribute
	 */
	String getAttribute(String name);
	
	/**
	 * 
	 * @param name the name of the attribute
	 * @param value the value to set for that attribute
	 */
	void setAttribute(String name, String value);
}
